﻿Module UI

    Public Sub FormatDataGrid(ByRef dgv As DataGridView)

        dgv.AllowUserToAddRows = False
        dgv.AllowUserToDeleteRows = False
        dgv.ReadOnly = True
        dgv.RowHeadersVisible = False
        dgv.AllowUserToResizeRows = False
        dgv.AlternatingRowsDefaultCellStyle.BackColor = My.Settings.DataGridViewAlternativeColor
        dgv.CellBorderStyle = DataGridViewCellBorderStyle.None
        dgv.RowTemplate.Height = My.Settings.DataGridViweRowHeight
        dgv.SelectionMode = DataGridViewSelectionMode.FullRowSelect
        dgv.MultiSelect = False
        dgv.DefaultCellStyle.Font = My.Settings.DataGridViweFont 
    End Sub

End Module
